Current Location: Home> Function Categories> date_parse

date_parse

Returns an associative array with detailed information about a given date
Name:date_parse
Category:Date and time
Programming Language:php
One-line Description:Returns an associative array with detailed information about the specified date.

Definition and usage

date_parse() function returns an associative array containing the details of the specified date.

Example

Returns an associative array containing the details of the specified date:

 <?php
print_r ( date_parse ( "2016-09-25 10:45:30.5" ) ) ;
?>

Try it yourself

grammar

 date_parse ( date ) ;
parameter describe
date Required. Specify date (format accepted by strtotime() ).
Similar Functions
Popular Articles